<?php
include_once dirname(__FILE__)."/../lang/error.php";
include_once dirname(__FILE__)."/../io/rows.php";
include_once dirname(__FILE__)."/../io/db.php";
class admin extends rows{
 	function init(){
 		$this->tableName="admin";
 		$this->col["adminid"]   = new column("adminid",dataCheck::INTEGER);
 		$this->col["adminName"] = new column("adminName",dataCheck::STRING|dataCheck::NOTNULL);
 		$this->col["adminRealName"]  = new column("adminRealName",dataCheck::STRING);
 		$this->col["adminKey"]  = new column("adminKey",dataCheck::STRING|dataCheck::NOTNULL);
 		$this->col["adminRights"]  = new column("adminRights",dataCheck::INTEGER|dataCheck::NOTNULL);
		$this->col["adminKeyRemainTimes"]  = new column("adminKeyRemainTimes",dataCheck::INTEGER);
		$this->col["adminLocked"]  = new column("adminLocked",dataCheck::INTEGER);
		$this->col["adminLastLoadedTime"]  = new column("adminLastLoadedTime",dataCheck::STRING);
		$this->col["adminLastLoadedIp"]  = new column("adminLastLoadedIp",dataCheck::STRING);
 	} 	 
 }
